<?php
if(__login__==0){
	header("Location:index.php");
	exit;
}

if(__user__prop__==0){
	$num = $myAgent->getNum();
	$info = $myAgent->getAgentDetail(__user_id__);
}else if(__user_prop__==1){
	$num = $myAgent->getUserNum();
	$info = $myAgent->getUserDetail(__user_id__);
}


$page->assign("shnum" , $num["shnum"]);
$page->assign("rhnum" , $num["rhnum"]);
$page->assign("msgnum" , $num["msgnum"]);
$page->assign("shcol" , $num["shcol"]);
$page->assign("rhcol" , $num["rhcol"]);

$page->assign("stars" , $info["stars"]);
$page->assign("scores" , $info["scores"]);
$page->assign("number" , $info["number"]);
$page->assign("username" , __user_name__);
$page->assign("userprop" , __user_prop__);
?>